package com.pointcircle.core.web;

import java.io.Serializable;
import java.util.List;

import org.springframework.web.bind.annotation.GetMapping;

import com.pointcircle.core.JpaBaseEntity;

public interface IFindAllRest<T extends JpaBaseEntity<ID>, ID extends Serializable, 
	EV extends EntityVo<T, ID>> 
	extends IRest<T, ID, EV> {

	@GetMapping("/findAll")
	default RestResponseList findAll() {
		List<T> entities = getRepository().findAll();
		return this.createRestResponseList(entities);
	}

	
}
